package com.example.lanouhn.firstapp.activity.utils;

import com.alibaba.fastjson.JSON;
import com.example.lanouhn.firstapp.activity.model.Syomb;

import org.json.JSONException;
import org.json.JSONObject;

/**
 * 解析判断标示码
 * Created by lanouhn on 16/8/2.
 */
public class SyombJson {
    public static Syomb getSyomb(String json){

        Syomb syomb = new Syomb();
        try {
            JSONObject obj = new JSONObject(json);

            syomb = JSON.parseObject(obj.toString(),Syomb.class);

        } catch (JSONException e) {
            e.printStackTrace();
        }
        return syomb;
    }
}
